﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using control.Dal;

namespace control.Biz
{
    public class BizLoaiSanPham
    {
        public int ID { get; set; }
        public string MaLoai { get; set; }
        public string TenLoai { get; set; }

        public BizLoaiSanPham(int _ID, string _MaLoai, string _TenLoai)
        {
            ID = _ID;
            MaLoai = _MaLoai;
            TenLoai = _TenLoai;
        }

        public static List<BizLoaiSanPham> GetAll()
        {
            return DalLoaiSanPham.GetAll();
        }

        public static BizLoaiSanPham GetLoaiSanPhamByID(int _IDLoai)
        {
            return DalLoaiSanPham.GetLoaiSanPhamByID(_IDLoai);
        }
    }
}
